//
//  HJCollectionCell.m
//  Sneakers
//
//  Created by 胡光健 on 2017/9/20.
//  Copyright © 2017年 mac. All rights reserved.
//

#import "HJCollectionCell.h"
#import "HJHomeModel.h"
@implementation HJCollectionCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.titleLabel.font = HJFontSize(mScreenWidth/414*17);
    self.moneyLabel.font = HJFontSize(mScreenWidth/414*18);
    self.timeLabel.font = HJFontSize(mScreenWidth/414*13);
}

-(void)setModel:(HJHomeModel *)model {
    self.titleLabel.text = model.shoes_name;
    self.moneyLabel.text = [NSString stringWithFormat:@"￥%@",model.sell_money];
    self.timeLabel.text = [CommonTools getTimeStrBytimeStamp:model.created_at];
    [self.imag sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@/%@",model.avatar_base_url,model.avatar_path]] placeholderImage:nil];
}
@end
